<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            padding: 0;
            margin: 0;
        }
        .card{
            width: 400px;
            height: 400px;
            background-color: pink;
            position: relative;
        }
        .card .icon{
            width: 100px;
            height: 100px;
            background-color: royalblue;
            position: absolute;
            /* (1)left: 50%;
            top: 50%;
            margin-top: -50px;
            margin-left: -50px; */

            /* (2)left: 150px;
            top: 150px; */

            margin: 150px 150px;
        }
    </style>
</head>
<body>
    <div class="card">
        <div class="icon"></div>
    </div>
</body>
</html>